<!DOCTYPE html>
<html>
<head>
	{include file="Public/header"}
	<style>
	    .row{margin:0;padding: 0}
		.hcg .on{
			color:black;
			font-weight:bold;
		}
		.unstyled{
			padding-left:0;
		}
		.unstyled li{
			padding-top:2px;
			padding-bottom:2px;
		}
		.ibox-title{
			background-color: #d3e0e6;
		}
	</style>
</head>
<body style="background-color: rgb(240, 243, 244);">
	<div class="row ibox ibox-content" style="background-color: rgb(240, 243, 244);">
		<div class="col-xs-6" style="padding-right:0;">
			<div class="ibox"  style="height:282px;background-color: white;">
				<div class="ibox-title hcg">
					<a href="javascript:;" class="on" data-id="daiban">待办流程</a>&nbsp;&nbsp;
					<a href="javascript:;" data-id="yiban">已办流程</a>&nbsp;&nbsp;
					<a href="javascript:;" data-id="daiyue">待阅流程</a>&nbsp;&nbsp;
					<a href="javascript:;" data-id="yiyue">已阅流程</a>
				</div>
				<div class="ibox-content" id="daiban">
					<ul class="unstyled">
						{volist name="data" id="row"}
						<li>
							[{$row.flowName}]
							<a href="{if $row.ywlx==1}{:url('workflowdb/tijinchang',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==2}{:url('workflowdb/noformalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==3}{:url('workflowdb/formalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==5}{:url('Chuchai/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==6}{:url('Wanyongapply/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==7}{:url('Jxshtgl/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==8}{:url('Commonwork/yusuanshenqing',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==9}{:url('Commonwork/yusuanshenqing',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==10}{:url('Richangbaoxiao/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==11}{:url('Apapply/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==12}{:url('Apapply/qxshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==13}{:url('Apapply/qxshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==14}{:url('Apapply/apfkshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==15}{:url('Apapply/aphxshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==16}{:url('Apfapiao/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==17}{:url('Tifeedback/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==18}{:url('Tihexiao/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}}{elseif $row.ywlx==19}{:url('Tifapiao/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==20}{:url('Qdyhzcsq/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==21}{:url('Workflowdb/ydshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==22}{:url('Workflowdb/qxshenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==23}{:url('Wdxsdd/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}}{elseif $row.ywlx==25}{:url('Wangdian/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==26}{:url('Wangdian/shenhe',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{/if}" class="J_menuItem">{$row.rwmcjbh}</a>
							{$row.sendTime}
						</li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						（您还有{$dbzj}条未处理的任务）<a href="{:url('workflowdb/index')}" class="J_menuItem">更多待办流程...</a>
					</address>
				</div>
				<div class="ibox-content" id="yiban" style="display: none;">
					<ul class="unstyled">
						{volist name="ybdata" id="row"}
						<li>
							[{$row.flowName}]
							<a href="{if $row.ywlx==1}{:url('workflowdb/process',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==2}{:url('workflowdb/noformalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==3}{:url('workflowdb/formalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{/if}" class="J_menuItem">{$row.rwmcjbh}</a>{$row.sendTime}</li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('workflowdb/ybindex')}" class="J_menuItem">更多已办流程...</a>
					</address>
				</div>
				<div class="ibox-content" id="daiyue" style="display: none;">
					<ul class="unstyled">
						{volist name="dydata" id="row"}
						<li>
							[{$row.flowName}]
							<a href="{if $row.ywlx==1}{:url('workflowdb/process',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==2}{:url('workflowdb/noformalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==3}{:url('workflowdb/formalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{/if}" class="J_menuItem">{$row.rwmcjbh}</a>{$row.sendTime}</li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('workflowdb/matterread')}" class="J_menuItem">更多待阅流程...</a>
					</address>
				</div>
				<div class="ibox-content" id="yiyue" style="display: none;">
					<ul class="unstyled">
						{volist name="yydata" id="row"}
						<li>
							[{$row.flowName}]
							<a href="{if $row.ywlx==1}{:url('workflowdb/process',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==2}{:url('workflowdb/noformalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{elseif $row.ywlx==3}{:url('workflowdb/formalbacklogdetail',['trackId'=>$row.trackId,'workId'=>$row.workId,'myId'=>$row.myId])}{/if}" class="J_menuItem">{$row.rwmcjbh}</a>{$row.sendTime}</li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('workflowdb/hadread')}" class="J_menuItem">更多已阅流程...</a>
					</address>
				</div>
			</div>
		</div>
		<div class="col-xs-6">
			<div class="ibox"  style="height:282px;background-color: white;">
				<div class="ibox-title">通知公告</div>
				<div class="ibox-content">
					<marquee id="messageMarquee" style="width: 100%" onmouseover="this.stop()" onmouseout="this.start()" scrolldelay="110">
						<font color="#ff0000">最新消息:</font>

						{volist name="tzgg" id="row"}
						<a  href="{:url('ggxx/view',['id'=>$row.id])}" class="J_menuItem">{$row.title}</a>({$row.fbrq}) ...&nbsp;&nbsp;&nbsp;&nbsp;
						{/volist}


						<!-- 						<a href=javascript:location.reload()>刷新</a> -->
					</marquee>
					<ul class="unstyled">
						{volist name="tzgg" id="row"}
						<li><a href="{:url('ggxx/view',['id'=>$row.id])}" class="J_menuItem">{$row.title}</a></li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('ggxx/index')}" class="J_menuItem">更多信息...</a>
					</address>
				</div>
			</div>
		</div>
		<div class="col-xs-6"  style="padding-right:0;">
			<div class="ibox"  style="height:282px;background-color: white;">
				<div class="ibox-title">信息提醒</div>
				<div class="ibox-content">
					<ul class="unstyled">
						{volist name="msg" id="row"}
						<li><a href="{:url('message/view',['id'=>$row.id])}" class="open" data-id="{$row.id}">{$row.title}</a>{$row.fssj}</li>
						{/volist}
					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('message/index')}" class="J_menuItem">更多信息...</a>
					</address>
				</div>
			</div>
		</div>
		<div class="col-xs-6"  style="padding-right:0;">
			<div class="ibox"  style="height:282px;background-color: white;">
				<div class="ibox-title">收件箱</div>
				<div class="ibox-content">
					<ul class="unstyled">

						<li><a href="" class="open" data-id="">1</a>2</li>

					</ul>
					<address style="position:absolute;right:20px;bottom:33px;">
						<a href="{:url('sjx/index')}" class="J_menuItem">更多信息...</a>
					</address>
				</div>
			</div>
		</div>

	</div>
</body>
{include file="Public/footer"}
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
	$(function () {
	    $('.open').on('click',function () {
	        var link = $(this).prop('href')
			var id = $(this).data('id')
	        layer.open({
				type:2,
				title:false,
                area: ['500px', '450px'],
				content:link,
				btn:['删除','关闭'],
				yes:function (i,o) {
					swal({
						title:'确定删除吗？',
						showCancelButton:true
					},function (is) {
						if(is){
						    $.post('{:url("message/delete")}',{id:id},function (data) {
								if(data.success){
								    swal({title:'删除成功'},function () {
										location.reload()
                                    })
								}else{
									swal(data.msg,'','warning')
								}
                            },'json')
						}
                    })
                }
			})
			return false
        })
		$('.hcg a').on('click',function () {
			$('.hcg a').removeClass('on')
			$(this).addClass('on')
			$('.hcg').parent().find('.ibox-content').hide()
			var id = $(this).data('id')
			$('#'+id).show()
        })
    })
</script>
</html>